package com.factory.code.controller.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TemplatePageParam {
    @ApiModelProperty(value = "项目id")
    private Integer projectId;

    private String name;
    private Integer currentPage;
    private Integer pageSize;


    public Integer getCurrentPage() {
        if (currentPage == null) {
            return 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            return 10;
        }
        return pageSize;
    }
}
